#include "chrono.h"

#include <unistd.h>

#include <iostream>


int main() {
    Utility::timepoint now = Utility::now();
    std::cout << "Current time is: " << Utility::to_formatted_string(now) << std::endl;

    sleep(5);

    Utility::timepoint now2 =  Utility::now();
    std::cout << "Current time is: " << Utility::to_formatted_string(now2) << std::endl;

    Utility::duration delta = now2 - now;
    std::cout << "Time duration is: " << Utility::cast_second(delta)  << std::endl ; 

}